package com.haierCamera.customapplication.ui.log;

import com.haierCamera.customapplication.di.TokenManager;
import com.tencent.bugly.crashreport.CrashReport;

import java.util.HashMap;
import java.util.Map;

import javax.inject.Inject;

import dagger.Lazy;

/**
 * @author yawei
 * @data on 2018/8/14 上午9:23
 * @email zyawei@live.com
 */
public class BuglyCrashCallBack extends CrashReport.CrashHandleCallback {

    @Inject
    public BuglyCrashCallBack() {
    }

    @Inject
    Lazy<TokenManager> tokenManager;

    @Override
    public synchronized Map<String, String> onCrashHandleStart(int i, String s, String s1, String s2) {
        Map<String,String> map = new HashMap<>();
        map.put("token",tokenManager.get().getToken());
        return map;
    }
}
